import service from '@/utils/request'

export const createAbTest = (data) => {
  return service({
    url: '/qmAbTest/createAbTest',
    method: 'post',
    data
  })
}

export const deleteAbTest = (params) => {
  return service({
    url: '/qmAbTest/deleteAbTest',
    method: 'delete',
    params
  })
}

export const updateAbTest = (data) => {
  return service({
    url: '/qmAbTest/updateAbTest',
    method: 'put',
    data
  })
}

export const findAbTest = (params) => {
  return service({
    url: '/qmAbTest/findAbTest',
    method: 'get',
    params
  })
}

export const getAbTestList = (params) => {
  return service({
    url: '/qmAbTest/getAbTestList',
    method: 'get',
    params
  })
}
